package com.yeyaomai.dksns.flowis.service.impl;

import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeyaomai.dksns.flowis.dao.TrendAnalysisHourDao;
import com.yeyaomai.dksns.flowis.domain.TrendAnalysisHour;
import com.yeyaomai.dksns.flowis.service.TrendAnalysisHourService;
/**
 * 时段分析按时service层实现
 * @author xiaqin
 *  date:2012-05-09
 */
@Service
public class TrendAnalysisHourServiceImpl implements TrendAnalysisHourService {

	@Resource
	private TrendAnalysisHourDao trendAnalysisHourDao;

	@Override
	public void addTrendAnalysisDay(TrendAnalysisHour trendAnalysisHour) {
		trendAnalysisHourDao.addTrendAnalysisDay(trendAnalysisHour);

	}

	@Override
	public TrendAnalysisHour getTrendAnalysisHourById(long id) {
		// TODO Auto-generated method stub
		return trendAnalysisHourDao.getTrendAnalysisHourById(id);
	}

	@Override
	public List<TrendAnalysisHour> getTrendAnalysisHourByHour(
			Date fromTrendDay, Date toTrendDay) {
		// TODO Auto-generated method stub
		return trendAnalysisHourDao.getTrendAnalysisHourByHour(fromTrendDay,
				toTrendDay);
	}

}
